home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch23 / 23fig05.wrl < prev    next >
Text File  |  1996-09-23  |  672b  |  32 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Initial fog and background
  8.         Fog {
  9.             color 1.0 1.0 1.0
  10.             fogType "LINEAR"
  11.             visibilityRange 40.0
  12.         },
  13.         Background { skyColor 1.0 1.0 1.0 },
  14.     # Alternate fog background
  15.         DEF AltFog Fog {
  16.             color 1.0 0.0 0.0
  17.             fogType "LINEAR"
  18.             visibilityRange 30.0
  19.         },
  20.         DEF AltBack Background { skyColor 1.0 0.0 0.0 },
  21.     # Test world
  22.         Transform {
  23.             children [
  24.                 Inline { url "fogworld.wrl" },
  25.                 DEF TouchWorld TouchSensor { }
  26.             ]
  27.         }
  28.     ]
  29. }
  30. ROUTE TouchWorld.isActive TO AltFog.set_bind
  31. ROUTE TouchWorld.isActive TO AltBack.set_bind
  32.